<div class="container-fluid">
	<div id="pad-wrapper">
		<!-- products table-->
		<!-- the script for the toggle all checkboxes from header is located in js/theme.js -->
		<div class="table-wrapper products-table section">
			<div class="row-fluid head">
				<div class="span12">
					<h4>合作人员管理</h4>
				</div>
			</div>
			<!--
			<form action="" method="get" name="search">
				<div class="row-fluid filter-block">
					<div class="pull-right">
						<a class="btn-flat success" href="/doctor/add">添加</a>
					</div>
				</div>
			</form>
			-->
			<div class="row-fluid">
				<table class="table table-hover">
					<thead>
					<tr>
						<td>医生姓名</td>
						<td>手机号</td>
						<td>所属合作机构</td>
						<td>操作</td>
					</tr>
					</thead>
					<?php foreach ($doctorList as $item):?>
						<tr>
							<td><?php echo $item['real_name']?></td>
							<td><?php echo $item['phone']?></td>
							<td><?php echo $item['name']?></td>
							<td>
								<button type="button" class=" btn-flat primary" onclick="window.location.href='/doctor/qr?id=<?php echo $item['d_id'] ?>'">二维码</button>
								<button type="button" class=" btn-flat primary" onclick="window.location.href='/doctor/spreadlist?id=<?php echo $item['d_id'] ?>'">推荐名单</button>
								<button type="button" class=" btn-flat primary" onclick="window.location.href='/doctor/edit?id=<?php echo $item['d_id'] ?>'">编辑</button>
								<button type="button" class=" btn-flat primary" onclick="del(<?php echo $item['d_id']?>)">删除</button>
							</td>
						</tr>
					<?php endforeach;?>
					</form>
				</table>
			</div>
		</div>
		<!-- end products table -->
	</div>
	<div class="pagination pull-right">
		<?php echo $pagination;?>
	</div>
</div>

<<script type="text/javascript">
	<!--
	function del(pid)
	{
		if(confirm("确定要删除吗？"))
		{
			window.location.href = "/doctor/delet?id=" + pid;
		}
	}
	//-->
</script>


